/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package onlineslideshow.html;

import java.util.ArrayList;

/**
 *
 * @author alex.nebel
 */
public class Gallery {

    private String title;
    private ArrayList<ImageElement> images;

    public Gallery(){
        title = "";
        images = new ArrayList<ImageElement>();
    }

    @Override
    public String toString(){
        StringBuilder code = new StringBuilder();
        code.append("\t<div id=\""+title+"\">\n");
        for(ImageElement img : images){
            code.append(img.toString());
        }
        code.append("\t</div>\n");
        return code.toString();
    }
}
